<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model common\models\BillingOperation */

$this->title = $model->client->client_name;
$this->params['breadcrumbs'][] = ['label' => Yii::t('common','Billing Operations'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="billing-operation-view mt">


    <div class="col-md-7 col-md-offset-2">
        <table class="table table-striped table-bordered">
            <tr>
                <th width="15%">客户姓名</th>
                <td width="30%"><?= $model->client->client_name?></td>
                <th width="15%">手术项目</th>
                <td width="30%"><?= $model->surgical->entry_name?></td>
            </tr>
            <tr>
                <th width="15%">主导医师</th>
                <td width="30%"><?= $model->hakim->username?></td>
                <th width="15%">医师助理</th>
                <td width="30%"><?= $model->assistant->username?></td>
            </tr>
            <tr>
                <th width="15%">护士</th>
                <td width="30%"><?= $model->nurse->username?></td>
                <th width="15%">咨询师</th>
                <td width="30%"><?= $model->counselor->username?></td>
            </tr>
            <tr>
                <th width="15%">手术费用</th>
                <td width="30%"><b class="red"><?= $model->surgery_cost?></b></td>
                <th width="15%">手术时间</th>
                <td width="30%"><?= $model->operation_time?></td>
            </tr>
            <tr>
                <th width="15%">状态</th>
                <td width="30%"><?= Html::button(\common\models\BillingOperation::$state[$model->status],['class'=>'btn btn-success'])?></td>
                <th width="15%">手术时间</th>
                <td width="30%"><?= $model->operation_time?></td>
            </tr>
        </table>
        <p style="text-align: center">
            <?= Html::a(Yii::t('common','确认收款'), ['update', 'id' => $model->id], [
                'class' => 'btn btn-primary',
                'data' => [
                    'confirm' => Yii::t('common','您确定已收到所有款项了吗?'),
                    'method' => 'post',
                ],
            ]) ?>
            <?= Html::a(Yii::t('common','Delete'), ['delete', 'id' => $model->id], [
                'class' => 'btn btn-danger',
                'data' => [
                    'confirm' => Yii::t('common','Are you sure you want to delete this item?'),
                    'method' => 'post',
                ],
            ]) ?>
        </p>
    </div>


</div>
